<%@ page contentType="text/html; charset=GBK" %><%@ page import="java.util.*" %><%@ page import="com.ionglobal.db.*" %><%@ page import="com.ionglobal.lib.*" %><%@ page import="com.ionglobal.misc.*" %><%@ page import="com.dhec.ggs.*"%><%
DBI dbi = new DBI();
Request Request = new Request(request);
try{
	CatiaDataApp catiaApp = new CatiaDataApp();
	ArrayList arr = null;
	Map searchParam = new HashMap();
	String dcno = Request.getString("q");
	if(dcno.length()>3){
		searchParam.put("dcno", dcno);
		
		arr = catiaApp.getCatiaDataList(dbi,1,20,searchParam,"iId desc");
	
		if(arr!=null && arr.size()>0){
			out.print("<ul>");
			for(int i=0;i<arr.size();i++){
				CatiaData catia = (CatiaData)arr.get(i);
%>
				<li><%=catia.getPartNo()%><input type="hidden" id="draw<%=i%>" value="<%=catia.getPartNo()+'|'+catia.getDcno()+'|' + catia.getPartName()+'|'+catia.getId()%>" /></li>
<%
			}
			out.print("</ul>");
		}
	}
}catch(Exception e){
	e.printStackTrace();
}finally{
	dbi.closeAll();	
}
%>